package com.neulogistics.contrib.usercenter.api.application.converter;

import cn.hutool.json.JSONUtil;
import com.neulogistics.contrib.usercenter.api.application.viewmodel.UserViewModel;
import com.neulogistics.contrib.usercenter.infrastructure.persistence.orm.po.UserPO;
import org.springframework.beans.BeanUtils;

public class UserPOVMConverter {
    public static UserViewModel POToVM(UserPO po){
        if(po == null)
            return null;

        UserViewModel viewModel = new UserViewModel();
        BeanUtils.copyProperties(po, viewModel);
        return viewModel;
    }
}
